package com.chengyu.core.model;

import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;

public class XxlJobLog implements Serializable {
    private Long id;

    @ApiModelProperty(value = "执行器主键ID")
    private Integer jobGroup;

    @ApiModelProperty(value = "任务，主键ID")
    private Integer jobId;

    @ApiModelProperty(value = "执行器地址，本次执行的地址")
    private String executorAddress;

    @ApiModelProperty(value = "执行器任务handler")
    private String executorHandler;

    @ApiModelProperty(value = "执行器任务参数")
    private String executorParam;

    @ApiModelProperty(value = "执行器任务分片参数，格式如 1/2")
    private String executorShardingParam;

    @ApiModelProperty(value = "失败重试次数")
    private Integer executorFailRetryCount;

    @ApiModelProperty(value = "调度-时间")
    private Date triggerTime;

    @ApiModelProperty(value = "调度-结果")
    private Integer triggerCode;

    @ApiModelProperty(value = "执行-时间")
    private Date handleTime;

    @ApiModelProperty(value = "执行-状态")
    private Integer handleCode;

    @ApiModelProperty(value = "告警状态：0-默认、1-无需告警、2-告警成功、3-告警失败")
    private Byte alarmStatus;

    @ApiModelProperty(value = "调度-日志")
    private String triggerMsg;

    @ApiModelProperty(value = "执行-日志")
    private String handleMsg;

    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getJobGroup() {
        return jobGroup;
    }

    public void setJobGroup(Integer jobGroup) {
        this.jobGroup = jobGroup;
    }

    public Integer getJobId() {
        return jobId;
    }

    public void setJobId(Integer jobId) {
        this.jobId = jobId;
    }

    public String getExecutorAddress() {
        return executorAddress;
    }

    public void setExecutorAddress(String executorAddress) {
        this.executorAddress = executorAddress;
    }

    public String getExecutorHandler() {
        return executorHandler;
    }

    public void setExecutorHandler(String executorHandler) {
        this.executorHandler = executorHandler;
    }

    public String getExecutorParam() {
        return executorParam;
    }

    public void setExecutorParam(String executorParam) {
        this.executorParam = executorParam;
    }

    public String getExecutorShardingParam() {
        return executorShardingParam;
    }

    public void setExecutorShardingParam(String executorShardingParam) {
        this.executorShardingParam = executorShardingParam;
    }

    public Integer getExecutorFailRetryCount() {
        return executorFailRetryCount;
    }

    public void setExecutorFailRetryCount(Integer executorFailRetryCount) {
        this.executorFailRetryCount = executorFailRetryCount;
    }

    public Date getTriggerTime() {
        return triggerTime;
    }

    public void setTriggerTime(Date triggerTime) {
        this.triggerTime = triggerTime;
    }

    public Integer getTriggerCode() {
        return triggerCode;
    }

    public void setTriggerCode(Integer triggerCode) {
        this.triggerCode = triggerCode;
    }

    public Date getHandleTime() {
        return handleTime;
    }

    public void setHandleTime(Date handleTime) {
        this.handleTime = handleTime;
    }

    public Integer getHandleCode() {
        return handleCode;
    }

    public void setHandleCode(Integer handleCode) {
        this.handleCode = handleCode;
    }

    public Byte getAlarmStatus() {
        return alarmStatus;
    }

    public void setAlarmStatus(Byte alarmStatus) {
        this.alarmStatus = alarmStatus;
    }

    public String getTriggerMsg() {
        return triggerMsg;
    }

    public void setTriggerMsg(String triggerMsg) {
        this.triggerMsg = triggerMsg;
    }

    public String getHandleMsg() {
        return handleMsg;
    }

    public void setHandleMsg(String handleMsg) {
        this.handleMsg = handleMsg;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", jobGroup=").append(jobGroup);
        sb.append(", jobId=").append(jobId);
        sb.append(", executorAddress=").append(executorAddress);
        sb.append(", executorHandler=").append(executorHandler);
        sb.append(", executorParam=").append(executorParam);
        sb.append(", executorShardingParam=").append(executorShardingParam);
        sb.append(", executorFailRetryCount=").append(executorFailRetryCount);
        sb.append(", triggerTime=").append(triggerTime);
        sb.append(", triggerCode=").append(triggerCode);
        sb.append(", handleTime=").append(handleTime);
        sb.append(", handleCode=").append(handleCode);
        sb.append(", alarmStatus=").append(alarmStatus);
        sb.append(", triggerMsg=").append(triggerMsg);
        sb.append(", handleMsg=").append(handleMsg);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}